package com.dongdongshop.service;

import com.dongdongshop.data.Page;
import com.dongdongshop.pojo.TbSpecification;
import com.dongdongshop.pojo.TbSpecificationOption;

import java.util.List;

public interface SpecService {
    void add(TbSpecification tbSpecification, List<TbSpecificationOption> options);

    Page<TbSpecification> list(Integer pageNum, Integer pageSize,TbSpecification tbSpecification);

    void deleteInfo(Integer[] ids);

    TbSpecification toUpdate(Long id);

    List<TbSpecificationOption> toUpdateOption(Long id);

    void updateInfo(TbSpecification tbSpecification, List<TbSpecificationOption> options);

    List<TbSpecification> toShow();
}
